package com.sky.Screen;

import java.util.ArrayList;

import com.healthcare.widget.ActionBar;
import com.healthcare.widget.ActionBar.IntentAction;
import com.sky.Model.Item;
import com.sky.Model.LocationItem;
import com.sky.Model.serviceItem;
import com.sky.adapter.CustomGridViewAdapter;
import com.sky.adapter.ServicesAdapter;
import com.sky.adapter.listLocationAdapter;
import com.sky.heathcare.R;

import android.app.Activity;
import android.content.Intent;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.os.Bundle;
import android.view.View;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.Button;
import android.widget.GridView;
import android.widget.ImageView;
import android.widget.ListView;

public class servicesActivity extends Activity {

	ListView lstView;
	ArrayList<serviceItem> listArray = new ArrayList<serviceItem>();
	ServicesAdapter listAdapter;

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.services_activity);
		
		final ActionBar actionBar = (ActionBar) findViewById(R.id.actionbar);       
        actionBar.setTitle("Dich vu");

        actionBar.setHomeAction(new IntentAction(this, MainActivity.createIntent(this), R.drawable.ic_title_home_default));
        actionBar.setDisplayHomeAsUpEnabled(true);
        
		initData();

		lstView = (ListView) findViewById(R.id.listServicePrice);
		listAdapter = new ServicesAdapter(this, R.layout.service_item,listArray);
				
		lstView.setAdapter(listAdapter);


	}

	private void initData() {		

		listArray.add(new serviceItem( "Khám và tư vấn phụ khoa:", "120,000"));
		listArray.add(new serviceItem( "Khám thai", "90,000"));
		listArray.add(new serviceItem( "Đặt vòng", "150,000"));
		listArray.add(new serviceItem( "Lấy vòngLấy vòng", "70,000"));
		listArray.add(new serviceItem( "Nội soi cổ tử cung", "100,000"));
		listArray.add(new serviceItem( "Phết  TB cổ tử cung", "60,000"));
		
		listArray.add(new serviceItem( "May tầng sinh môn", "50,000"));
		listArray.add(new serviceItem( "Cắt nhú da", "50,000"));
		listArray.add(new serviceItem( "Cắt nhú da", "50,000"));
		listArray.add(new serviceItem( "Cắt nhú da", "50,000"));
		listArray.add(new serviceItem( "Cắt nhú da", "50,000"));
		listArray.add(new serviceItem( "Cắt nhú da", "50,000"));

	}
}
